:: Compile the requested code
java -jar upCompiler.jar %1

:: Now, Java compile it in with the runtime library
javac -classpath ".\;upbeat.jar;jMusic.jar" upbeat\sample\*.java

:: JAR it up.
jar fmc %1.jar MANIFEST.MF .\upbeat\sample\*.class

:: Cleanup.
rmdir upbeat /s /q
